package com.punai.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.common.core.domain.TreeBo;
import com.punai.customer.domain.CusFbChapter;
import com.punai.standard.domain.StaFbChapter;

import java.util.List;

/**
 * 分包费用项章节Service接口
 *
 * @author ruoyi
 * @date 2022-12-09
 */
public interface ICusFbChapterService extends IService<CusFbChapter>
{
    /**
     * 查询分包费用项章节
     *
     * @param id 分包费用项章节主键
     * @return 分包费用项章节
     */
    public CusFbChapter selectDmcFbChapterById(String id);

    /**
     * 查询分包费用项章节列表
     *
     * @param dmcFbChapter 分包费用项章节
     * @return 分包费用项章节集合
     */
    public List<CusFbChapter> selectDmcFbChapterList(CusFbChapter dmcFbChapter);

    /**
     * 新增分包费用项章节
     *
     * @param dmcFbChapter 分包费用项章节
     * @return 结果
     */
    public int insertDmcFbChapter(CusFbChapter dmcFbChapter);

    /**
     * 修改分包费用项章节
     *
     * @param dmcFbChapter 分包费用项章节
     * @return 结果
     */
    public int updateDmcFbChapter(CusFbChapter dmcFbChapter);

    /**
     * 批量删除分包费用项章节
     *
     * @param ids 需要删除的分包费用项章节主键集合
     * @return 结果
     */
    public int deleteDmcFbChapterByIds(String[] ids);

    /**
     * 删除分包费用项章节信息
     *
     * @param id 分包费用项章节主键
     * @return 结果
     */
    public int deleteDmcFbChapterById(String id,Long companyId,String shape);

    List<TreeBo> treeData(Long companyId);

    List<TreeBo> getSpecialtyList(Long companyId);

    List<TreeBo> treeDataByTopId(String topId, Long companyId);

    CusFbChapter selectFbChapterById(String id, Long companyId);

    int insertFbChapter(CusFbChapter dmcFbChapter, Long companyId);

    int updateFbChapter(CusFbChapter dmcFbChapter, Long companyId);

    void moveTree(String type, String id, String dropId, Long companyId);

    List<String> getOptionalSpecList(Long companyId);

    public StaFbChapter getStaFbChapterById(String id, String specId, Long companyId);
}
